package yscmd

import "context"

const FLAG_DEBUG_LONG = "debug"

type FlagDebugBuilder struct {
	FlagBuilderCore
}

func (b *FlagDebugBuilder) Init(ctx context.Context, group ...string) {
	b.FlagBuilderCore.Init(ctx)
	b.F.Long = FLAG_DEBUG_LONG
	b.F.Description = `
        是否启动调试模式`
	b.F.DefaultValue = false
}

func FlagDebug(ctx context.Context) *Flag {
	build := &FlagDebugBuilder{}
	build.Init(ctx)
	return build.Flag()
}
